package com.jt.demo1;

/*使用有参构造注入*/
public class Orders {
    private String oname;
    private String address;
    //有参构造
    public Orders(String oname, String address) {
        this.oname = oname;
        this.address = address;
    }
    public void orderTest(){
        System.out.println(oname+":"+address);
    }
}
